home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1998-08-11 | 3.2 KB | 76 lines | [ TEXT/ScoM]
g-tuplet2 seed low high type rest-position length-value tuplet-value rest: n = non, l = last, f = first, c = center, o = outer r = random. type: d = divide r = random, m = max. 0 in tuplet-value list is rest. This function enables the generation of tuplet note-length values from a list of integers. In the first two examples below the tuplet-value creates tuplet groups according to the length-value value of 1/4: quintuplet, triplet, triplet, quintuplet. The choice of tuplet grouping is governed by the type, here set at random. (g-tuplet2 nil 1 2 'r 'n 4 '(5 3 0 5)) => ((1/20 3/20 1/20) (1/6 1/12) (-4/1) (1/20 1/20 1/20 1/10)) (g-tuplet2 nil 1 2 'r 'n '1/4 '(5 3 3 5)) => ((1/20 1/5) (1/12 1/6) (1/6 1/12) (1/20 1/20 3/20)) (g-tuplet2 nil 1 2 'r 'c '1/4 '(5 7 4 5)) => ((1/20 -1/20 -1/20 1/20 1/20) (1/14 1/28 1/28 -1/28 -1/28 1/28) (1/8 -1/16 1/16) (1/20 1/20 -1/20 1/10)) (g-tuplet2 nil 1 2 'r 'o 4 '(5 7 4 5)) => ((-1/20 1/10 1/20 -1/20) (-1/28 -1/28 1/14 1/14 -1/28) (-1/16 1/16 -1/16 -1/16) (-1/20 -1/20 1/20 -1/20 -1/20)) (g-tuplet2 nil 1 2 'r 'r 4 '(5 3 3 5)) => ((3/20 -1/20 -1/20) (1/12 -1/12 -1/12) (-1/12 1/6) (1/5 -1/20)) (g-tuplet2 nil 1 2 'r 'f 4 '(5 3 3 5)) => ((-1/20 -1/20 -1/20 1/20 1/20) (-1/12 -1/12 1/12) (-1/12 1/12 1/12) (-1/20 1/20 1/20 1/10)) (g-tuplet2 nil 1 2 'r 'l 4 '(5 3 3 5)) => ((1/20 3/20 -1/20) (1/6 -1/12) (1/6 -1/12) (1/20 1/20 1/20 -1/20 -1/20)) (g-tuplet2 nil 1 5 'r 'n 4 '(5 3 3 5)) => ((1/20 1/5) (1/12 1/6) (1/4) (1/5 1/20)) In the next example the type is set to 'm', thus requesting the generation of tuplets to their maximum numerical grouping. (g-tuplet2 nil 1 5 'm 'n 4 '(5 3 3 5)) => ((1/20 1/20 1/20 1/20 1/20) (1/12 1/12 1/12) (1/12 1/12 1/12) (1/20 1/20 1/20 1/20 1/20)) When set to 'd' the type divides up the tuplet values into additive groupings, thus (1/12 1/12 1/12) might become (1/12 1/6) or (1/6 1/12) and so on. (g-tuplet2 nil 1 2 'd 'r 4 '(5 3 3 5)) => ((1/10 1/20 -1/20 -1/20) (1/6 -1/12) (1/6 -1/12) (-1/20 1/20 1/20 1/10)) (g-tuplet2 .23 1 3 'r 'f 4 '(5 3 4 5)) => ((-1/20 -1/20 -1/20 1/10) (-1/12 1/6) (-1/16 -1/16 1/8) (-1/20 -1/20 -1/20 -1/20 1/20)) (g-tuplet2 .23 1 3 'd 'n '(4 8 8) '(5 3 4 5)) => ((1/10 1/20 1/10) (1/24 1/12) (1/16 1/16) (1/20 3/20 1/20)) (g-tuplet2 nil 2 3 'd 'l '(4 8 8) '(5 3 4 5)) => ((1/10 -1/20 -1/20 -1/20) (1/12 -1/24) (1/16 -1/32 -1/32) (3/20 -1/20 -1/20)) (g-tuplet2 .56 1 2 'd 'r '(4 8 8) '(5 3 0 5)) => ((-1/20 1/10 1/10) (1/12 -1/24) (-1/8) (1/10 -1/20 1/10)) (g-tuplet2 0.23 1 5 '(d r) (flatten (rotate-fc 7 '(f f c r n n c c o))) (flatten (rotate-fc 7 '(4 4 8 8))) (flatten (rotate-fc 7 '(3 5 5 0 4 5 5 3)))) (g-tuplet2 nil 1 3 'd '(f n l n l n n r n n f n n f n f f) '(4 4 4 8 8 4 4 4 4 4 4 8 8 4 4 4 4) '(5 1 8 4 0 3 0 5 1 1 5 4 4 3 3 5 5)) (g-tuplet1 nil 1 3 '(d r r d m r m d d d m r m d r r d) '(f n c n l n n r n n n f n n n f f) '(4 4 4 (8 8) 4 4 4 4 4 4 (8 8) 4 4 4 4) '(5 1 8 4 3 4 0 5 5 3 5 5 4 0 3 5 5))